import * as type from "./type"
import axios from "utils/http"
import { createGunzip } from "zlib";
let  actions = {
    [type.Home]({commit,rootState},payload){
        axios({
            method: "get",
            url: "/home/index.html",
            params: {
                pageNo: 1
            }
        }).then(res => {    
            // console.log("Home数据请求",res.data.home);
            // console.log(this.$store);
            let action = {
                type: type.Home,
                payload: res.data.home
            }      
            commit(action);     
         
        })
        .catch(err => {
           return err;
            
        })

       
   
    }

}

export default actions;
